package day5;

/**
 * @author oldliu
 * @since 1.0
 */
public class EmpCompare {
    public static void main(String[] args) {
        //
        Employee e=new Employee("001","张宇",21,"男","助理",90999);
        Employee e2=new Employee("001","章鱼",2211,"男","助理",3600);
        int b = e.compareTo(e2);
        if(b>0){
            System.out.println(e+"大于"+e2);
        }else if(b==0){
            System.out.println(e+"等于"+e2);
        }else{
            System.out.println(e+"小于"+e2);
        }
    }
}
